package com.listviewre;

import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import org.json.JSONArray;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/7.
 */
public class Addapter extends PKAdapter<User, UserHolder> {
    private Context context;
    public Addapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    protected void onBindData(UserHolder holder, int position, User data) {
        holder.a.setText(data.getAa());
        holder.a.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(context,"111111111",Toast.LENGTH_LONG).show();
            }
        });

    }


}
